﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
	[RunInstaller(true)]
	public class ProjectInstaller : Installer
	{
		private ServiceProcessInstaller process;
		private ServiceInstaller service;

		/*
		 * Install Command to use with Package maanager Console (PowerShell)
		 * C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /i C:\TFS...\Services\PoC\vroom.wcf.service\bin\Debug\vroom.wcf.service.exe
		 */

		public ProjectInstaller()
		{
			process = new ServiceProcessInstaller();
			process.Account = ServiceAccount.LocalSystem;
			service = new ServiceInstaller();

			service.ServiceName = "WCF Service";
			Installers.Add(process);
			Installers.Add(service);
		}
	}
}
